package cn.sxt.sys.mapper;

import java.util.List;

import cn.sxt.sys.domain.Permission;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);
    
    List<Permission> queryAllPermission(Permission permission);

	List<Permission> queryPermissionByRoleId(Integer available, Integer roleid);
	//根据用户id查菜单
	List<Permission> queryPermissionByUserId(String type, Integer userid);
}